package com.itheima.commons.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 小视频关注主播表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "log")
public class Log implements Serializable {
    //主键id
    @Id
    private ObjectId id;
    //用户Id
    private Long userId;
    //登陆时间
    private Integer logTime;
    //登录地点
    private String place;
    //登录设备
    private String equipment;
}